function register(obj, size)
{
	var registerForm = document.getElementById("registerForm");
	registerForm.course.value = obj.id;
	$(registerForm).submit();
	$('#trOfTable'+size).fadeOut("slow");
	loadPage('student/availableCourses.jsp');
}

function registerFromView(obj)
{
	var registerForm = document.getElementById("registerForm");
	registerForm.course.value = obj.id;
	$(registerForm).submit();
	$('#regUnregView').fadeOut("slow");
}
